<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
 //一、then的失败返还值 
 let p=new Promise((resolve,reject)=>{
    reject('失败了')
 })

 let result=p.then(res=>{

 },err=>{
    return new Promise((resolve,reject)=>{
        resolve('返还的成功状态')
    })
 })
    </script>
</body>

</html>